<#if bizServiceVars.importAnnotationClassDefineArea?has_content>
${abs.importAnnotationClassDefineAreaStartMark}
${bizServiceVars.importAnnotationClassDefineArea}
${abs.importAnnotationClassDefineAreaEndMark}
<#else>
${abs.importAnnotationClassDefineAreaStartMark}
package ${bizServiceVars.packageName};

import ${dbExchangerVars.packageName}.${entity}DbExchanger;
import ${bizRequestBOVars.packageName}.${entity}BizRequestBO;
import ${bizResponseBOVars.packageName}.${entity}BizResponseBO;
import ${boVars.packageName}.${entity}BO;
import com.xieyang.inner.common.spring.util.XBeanUtils;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.Objects;

/**
 * <p>
 * ${table.comment!} 业务服务类
 * </p>
 *
 */
@Service
public class ${entity}BizService {
${abs.importAnnotationClassDefineAreaEndMark}
</#if>

    @Resource
    ${entity}DbExchanger ${entity?substring(0,1)?lower_case + entity?substring(1)}DbExchanger;

    public ${entity}BizResponseBO biz(${entity}BizRequestBO ${entity?substring(0,1)?lower_case + entity?substring(1)}BizRequestBO) {
        ${entity}BizResponseBO ${entity?substring(0,1)?lower_case + entity?substring(1)}BizResponseBO = new ${entity}BizResponseBO();
        // do biz
        ${entity}BO ${entity?substring(0,1)?lower_case + entity?substring(1)}BO = ${entity?substring(0,1)?lower_case + entity?substring(1)}DbExchanger.biz();
        if (Objects.nonNull(${entity?substring(0,1)?lower_case + entity?substring(1)}BO)) {
            ${entity?substring(0,1)?lower_case + entity?substring(1)}BizResponseBO = XBeanUtils.convert(${entity?substring(0,1)?lower_case + entity?substring(1)}BO, ${entity}BizResponseBO.class);
        }
        return ${entity?substring(0,1)?lower_case + entity?substring(1)}BizResponseBO;
    }

    ${abs.customerAreaStartMark}
 ${bizServiceVars.customerArea}
    ${abs.customerAreaEndMark}

}
